package org.example.demo_ottery.service;

import org.example.demo_ottery.controller.param.UserLoginParam;
import org.example.demo_ottery.controller.param.UserPasswordLoginParam;
import org.example.demo_ottery.controller.param.UserRegisterParam;
import org.example.demo_ottery.service.dto.UserDTO;
import org.example.demo_ottery.service.dto.UserLoginDTO;
import org.example.demo_ottery.service.dto.UserRegisterDTO;
import org.example.demo_ottery.service.enums.UserIdentityEnum;

import java.util.List;

public interface UserService {
    /**
     * 注册
     * @param userRegisterParam
     * @return
     */
    UserRegisterDTO register(UserRegisterParam userRegisterParam);

    /**
     * 登录
     * @param param
     * @return
     */
    UserLoginDTO login(UserLoginParam param);

    /**
     * 查找人员列表
     * @param identity
     * @return
     */
    List<UserDTO> findUserInfo(UserIdentityEnum identity);
}
